<?php

class Database
{
    public static function dbconnect()
    {
        static $connect = null;
        if($connect == null)
        {
            $host = "localhost";
            $user = "root";
            $pass = "";
            $db = "test";
            
            $connect = mysql_connect($host, $user, $pass);
            mysql_select_db($db);
        }
        return $connect;
    }
}

?>